package com.uwntek.service.Imp;

import com.base.service.impl.ServiceImpl;
import com.uwntek.pojo.Projectmanage;
import com.uwntek.service.IProjectManageService;

public class ProjectManageServiceImpl<T extends Projectmanage> extends
		ServiceImpl<T> implements IProjectManageService<T> {

	@Override
	public boolean create(T projectmanage) {
		if (dao.createQuery(
				" from Projectmanage p where p.projectName = '"
						+ projectmanage.getProjectName() + "'").list().size() > 0) {

			return false;
		}

		else {
			dao.create(projectmanage);

			return true;
		}

	}

}
